#!/bin/bash

API=29
PREFIX=`pwd`/faac-android/armeabi-v7a
export NDK=/home/yfux/Downloads/android-ndk-r20b
TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export CC=$TOOLCHAIN/bin/armv7a-linux-androideabi$API-clang
export CFLAGS="-O0 -g -fPIC"

./configure --prefix=$PREFIX --host=arm-linux-androideabi --with-pic 

make clean
make install

